import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { GoodEntity } from '~/modules/goods/good.entity'
import { GoodsController } from './goods.controller'
import { GoodsService } from './goods.service'

const providers = [GoodsService]

@Module({
  imports: [TypeOrmModule.forFeature([GoodEntity])],
  controllers: [GoodsController],
  providers: [...providers],
  exports: [...providers, TypeOrmModule],
})
export class GoodsModule {
}
